package com.syp.hehe.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.syp.hehe.domain.pojo.CommentSchema;

public interface CommentMapper {

	public void insert(CommentSchema r);

	public void deleteByUUID(String uuid);

	public CommentSchema getByUUID(String uuid);

	public List<CommentSchema> getPageList(@Param("articleId") Long articleId, @Param("beginIndex") Long beginIndex, @Param("pageSize") Integer pageSize);
	
	public List<CommentSchema> getPageOffSetList(@Param("articleId") Long articleId, @Param("referId") Long referId, @Param("offset") Integer offset);

	public Boolean hasMorePage(@Param("articleId") Long articleId, @Param("rowIndex") Long rowIndex);
	
	public Boolean hasNextRow(@Param("articleId") Long articleId, @Param("referId") Long referId);

}
